package cn.chiship.framework.upms.biz.system.pojo.dto;

import cn.chiship.framework.common.constants.TipConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author lijian
 */
@ApiModel(value = "系统表单")
public class UpmsSystemDto {

    @ApiModelProperty(value = "访问路径")
    @NotNull
    @Length(min = 1, max = 100)
    private String basePath;

    @ApiModelProperty(value = "系统名称")
    @NotNull
    @Length(min = 1, max = 20)
    private String title;

    @ApiModelProperty(value = "系统代码")
    @NotNull
    @Length(min = 1, max = 50)
    private String code;

    @ApiModelProperty(value = "描述")
    @Length(max = 200)
    private String description;

    @ApiModelProperty(value = "是否默认(0,1)", required = true)
    @NotNull(message = "是否默认" + TipConstants.NOT_EMPTY)
    @Min(0)
    @Max(1)
    private Byte isDefault;

    @ApiModelProperty(value = "系统排序")
    @NotNull
    private Long orders;

    @ApiModelProperty(value = "系统类型(0,99)", required = true)
    @NotNull(message = "系统类型" + TipConstants.NOT_EMPTY)
    @Min(0)
    @Max(99)
    private Byte systemType;


    public String getBasePath() {
        return basePath;
    }

    public void setBasePath(String basePath) {
        this.basePath = basePath;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getOrders() {
        return orders;
    }

    public void setOrders(Long orders) {
        this.orders = orders;
    }

    public Byte getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Byte isDefault) {
        this.isDefault = isDefault;
    }

    public Byte getSystemType() {
        return systemType;
    }

    public void setSystemType(Byte systemType) {
        this.systemType = systemType;
    }
}
